<?php
/* @var $this ColorController */
/* @var $model Color */
$this->pageTitle = Yii::app()->name . ' - '.Yii::t('default', 'Color');
$this->breadcrumbs=array(
Yii::t('default', 'Colors')=>array('index'),
Yii::t('default', 'List'),
);

$this->menu=array(
array('label'=>Yii::t('default', 'Create'), 'url'=>array('create')),
);
?>

<h3>
<?php echo Yii::t('default', 'List').' '.Yii::t('default', 'Colors') ?>
</h3>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'color-grid',
	'dataProvider'=>$model->search(),
  'pager'=>array
	(
		'firstPageLabel' => '&lt;&lt;',
    'prevPageLabel'  => '&lt;',
    'nextPageLabel'  => '&gt;',
    'lastPageLabel'  => '&gt;&gt;',
		'footer'=>'',
		'header'=>'',
	  'selectedPageCssClass' => 'selected',
	  'firstPageCssClass' => '',
	  'lastPageCssClass' => '',
	  'nextPageCssClass' => '',
	  'previousPageCssClass' => '',
	  'internalPageCssClass' => '',
	  'htmlOptions' => array(
	    'class' => ''
	  )
	),
	'columns'=>array(
		array(
      'value' => $this->stt_gridview,
    ),
    array(
      'name' => 'name',
      'value' => '$data->name',
    ),
    array(
  		'name'=>'enabled',
  		'value'=>'($data->enabled==1)?Yii::t("default", "Yes"):Yii::t("default", "No")'
		),
		array(
  		'name'=>'createddate',
  		'value'=>'date("d-m-Y G:i",$data->createddate)'
		),
		array(
  		'name'=>'modifieddate',
  		'value'=>'date("d-m-Y G:i",$data->modifieddate)'
		),
		array(
			'class'=>'CButtonColumn',
		),
	),
	'htmlOptions' => array(
	  'class' => ''
  )
)); ?>
